package JavaCore;

public class ArrayTest14 {
	
	public ArrayTest14(){
		int[][] su = {{1,2,3},{4,5,6},{7,8,9}};
		
		prn(su);
		System.out.println("=================");
		for(int i=0;i<su.length;i++){
			prn2(su[i]);
		}	
	}
	
	public void prn(int[][] a){
		for(int i=0;i<a.length;i++){
			for(int j=0;j<a.length;j++){
				if(a[i][j]%2==0){
					System.out.print(a[i][j]);
				}else{
					System.out.print(" ");
				}
			}System.out.println();
		}		
	}
	
	public void prn2(int[] a){
		for (int i=0;i<a.length;i++){
			if(a[i]%2==1){
				System.out.print(a[i]);
			}else{
				System.out.print(" ");
			}
		}System.out.println();		
	}

	public static void main(String[] args) {
		ArrayTest14 at = new ArrayTest14();

	}

}
